package com.xinminda.dcf.ui.news.contract;

import com.xinminda.dcf.bean.NewsSummary;
import com.xinminda.dcf.ui.base.BaseModel;
import com.xinminda.dcf.ui.base.BasePresenter;
import com.xinminda.dcf.ui.base.BaseView;
import java.util.List;
import rx.Observable;

public interface NewsListContract {
    interface Model extends BaseModel {
        Observable<List<NewsSummary>> getNewsListData(String header, String params);
    }

    interface View extends BaseView {
        void returnNewsListData(List<NewsSummary> newsSummaries);
    }
    abstract static class Presenter extends BasePresenter<View, Model> {
        public abstract void getNewsListDataRequest(String header, String params);
    }
}
